﻿using KinonekoSoftware.CodariaDB.Documents.Shenanigans.Forum;

namespace KinonekoSoftware.Studio.Models.Shenanigans.Forums
{
    public class PlainTextMSG : ForumMSG
    {
        protected virtual PlainTextBase GetPlainText() => (PlainTextForumObject)Target;

        /// <summary>
        /// 获取或设置 <see cref="Content"/> 属性。
        /// </summary>
        public string Content
        {
            get => GetPlainText().Content;
            set
            {
                GetPlainText().Content = value;
                RaiseUpdated();
            }
        }
    }
}